ept p2m: set rwx flags to 0 for invalid and mmio_dm types.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 6 Aug 2009 08:14:52 +0000 (09:14 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 6 Aug 2009 08:14:52 +0000 (09:14 +0100)
commitdf30f28749d96bacb83ffca102ab505bd7df08b4
tree362ca82414f991035dfc0589dba8aec221c99d1a
parent3c11d89e35a0114fa338e5652c5c76f9cc6981e5
ept p2m: set rwx flags to 0 for invalid and mmio_dm types.

Read/write/execute flags are set to 1 before calling the type_to_flags
function which sets them to their appropriate values depending on the
p2m type. However, in invalid, mmio_dm, and default/unknown cases in
type_to_flags just falls through, unsafely leaving full access to
these pages.

Signed-off-by: Patrick Colp <Patrick.Colp@citrix.com>
xen/arch/x86/mm/hap/p2m-ept.c